﻿using Max.PH4_2104A.Shopping.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Max.PH4_2104A.Shopping.IService
{
    /// <summary>
    /// 分类的服务接口
    /// </summary>
    public interface ICategoryService
    {
        /// <summary>
        /// 添加分类
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        int Insert(CategoryModel model);

        /// <summary>
        /// 查询分类
        /// </summary>
        /// <returns></returns>
        IQueryable<CategoryModel> GetAll();

        dynamic GetRecurseCategory();
    }
}
